package com.runvp.common.util;

import com.runvp.common.build.BuildEnums;
import com.runvp.common.enums.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 枚举处理类
 *
 * @author xukk_dp
 */
public class EnumsUtil {

    public static final Logger log = LoggerFactory.getLogger(EnumsUtil.class);


    /**
     * 初始化枚举
     */
    public static void initEnums() {
        BuildEnums.putEnum("门锁状态", DoorLockStatus.class);
        BuildEnums.putEnum("产品类型", ProductType.class);
        BuildEnums.putEnum("启用状态", EnableStatus.class);
        BuildEnums.putEnum("用户类型", UserType.class);
        BuildEnums.putEnum("数据来源", DataSource.class);
        BuildEnums.putEnum("客户账户类型", AccountType.class);
        BuildEnums.putEnum("联网方式", NetworkingModeType.class);
        BuildEnums.putEnum("支付渠道", PayChannel.class);
        BuildEnums.putEnum("在线状态", LineStatus.class);
        BuildEnums.putEnum("设备类型", DeviceType.class);
        BuildEnums.putEnum("门锁状态", DoorLockStatus.class);
        BuildEnums.putEnum("续费状态", RenewStatus.class);
        BuildEnums.putEnum("订单状态", OrderStatus.class);
        BuildEnums.putEnum("订单支付状态", OrderPayStatus.class);
        BuildEnums.putEnum("订单类型", OrderType.class);
        BuildEnums.putEnum("设备出液口", DevicePort.class);
        BuildEnums.putEnum("支付状态", PayStatus.class);
        BuildEnums.putEnum("账变类型", BillChangeType.class);
        BuildEnums.putEnum("交易类型", TranType.class);
        BuildEnums.putEnum("消息类型", TcpType.class);
        BuildEnums.putEnum("服务指令", NettyCmd.class);
        BuildEnums.putEnum("端口占用状态", CargoUseStatus.class);
        BuildEnums.putEnum("支付方式", OrderPayMethod.class);
        BuildEnums.putEnum("设备上报充电结束", ChargeReportStatus.class);

        // 如下加入字典，做如上操作。。。

    }


}
